<html>
    <head>
        <script src="/static/vue.js"></script>
        <script src="/static/vue/page.js"></script>
    </head>
    <body>
        <div id='app'>
            <a v-on:click="doSomething">{{a|filterPara}}</a>
        </div>
        <script type='text/javascript'>
            var app = new Vue({
                el: '#app',
                data: {
                  a:"点击"
                },
                methods : {
                    doSomething:function(){
                        this.a = '已点击'
                    }
                },
                filters: {
                    filterPara:function(value) {
                        return value + 'test';
                    }
                }
              })
        </script>
    </body>
</html>